#ifndef MEMODETAILINFODIALOG_H
#define MEMODETAILINFODIALOG_H

#include <QDialog>
#include <QtSql>

class MemoDetailInfoWidget;

class MemoDetailInfoDialog : public QDialog
{
    Q_OBJECT

public:
    enum DialogType{Show = 2, New, Modify, Delete};

public:
    explicit MemoDetailInfoDialog(QSqlDatabase _db,
                                  QString _strMemoID,
                                  DialogType _DialogType,
                                  QWidget *parent = 0);
    QString getID();
private:
    MemoDetailInfoWidget* m_pMemoDetailInfoWidget;
    //btns
    QPushButton* m_pBtnCancel;
    //New
    QPushButton* m_pBtnAdd;
    //Modify
    QPushButton* m_pBtnModify;
    //del
    QPushButton* m_pBtnDel;

private slots:
    void doBtnAdd();
    void doBtnModify();
    void doBtnDel();

signals:

public slots:

};

#endif // MEMODETAILINFODIALOG_H
